.PHONY:all
all:test mycommand


test:test.cpp
	g++ -o $@ $^

mycommand:mycommand.c
	gcc -o $@ $^ 

.PHONY:clean
clean:
	rm -f mycommand
